<?php

namespace app\api\listener;


// 监听用户注册后的操作
use app\model\UserCensusCountModel;

class Register
{

    public function handle($data)
    {
        try {
            UserCensusCountModel::create(['user_id' => $data['user_id'], 'create_time' => time()]);
            return true;
        } catch (\Exception $e) {
            return echoShutDown($e->getMessage() . $e->getLine());
        }

    }


}